Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing memory leak of shaperList #536

Merged
merged 2 commits into from
Jan 3, 2020

Conversation

elliott-wen
Copy link
Contributor

A leak is detected in Engine->shaperList. A simple and safe fix.

A leak is detected in Engine->shaperList. A simple and safe fix.
@elliott-wen elliott-wen changed the title Fixing memory leak of shaperListToFree Fixing memory leak of shaperList Jan 2, 2020
@codecov
Copy link

codecov bot commented Jan 2, 2020

Codecov Report

Merging #536 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #536      +/-   ##
==========================================
+ Coverage    45.5%   45.51%   +<.01%     
==========================================
  Files         137      137              
  Lines       59911    59919       +8     
==========================================
+ Hits        27263    27271       +8     
  Misses      32648    32648
Impacted Files Coverage Δ
tectonic/xetex-xetex0.c 77.56% <100%> (ø) ⬆️
tectonic/xetex-XeTeXLayoutInterface.cpp 28.94% <100%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bfe80d...9b362f7. Read the comment docs.

new_native_character returns a complicated data structure, containing a heap allocation object. 
Should free the heap content before deleting the data structure.
@pkgw
Copy link
Collaborator

pkgw commented Jan 3, 2020

Great, thanks!

@pkgw pkgw merged commit 334509f into tectonic-typesetting:master Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants